<?
class LinkCategoryBO extends BusinessObject{

  /* private function using in constructors*/ 
  function setAttributes(){
    $this->fields   = array(
    'id'          =>   'lcID',
    'name'        =>   'lcName',
    'description' =>   'lcDescription',
    'visible'     =>   'lcVisible',
    'position'    =>   'lcPosition');

    $l = new LinkBO();
    $this->relations = array("{$l->tableName}" =>"{$this->tableName}.{$this->fields[id]} = {$l->tableName}.{$l->fields['category']}");
   BusinessObject::setAttributes();
  }  

  /* constructor */
  function LinkCategoryBO(){
    /** super(tableName) */
    BusinessObject::BusinessObject("links_category");
    $this->setAttributes();
  }

}
?>